package xcmg.device.infra.enums;

/**
 * 数据字典名称 "SPZT"
 *
 * @author wangyong
 */

public enum PurchaseRequestBillStatusEnum {

  DRAFT("0", "草稿"),
  SUBMITED("1","已提交"),
  AUDIT_PASSED("2","审核通过"),
  AUDIT_REFUSED("3","驳回"),
  REFUSED_SUBMITED("4","驳回已提交"),
  CLOSED("5","关闭");

  private String status;

  private String statusDesc;

  public static PurchaseRequestBillStatusEnum getByStatus(String status) {

    for (PurchaseRequestBillStatusEnum statusEnum : PurchaseRequestBillStatusEnum.values()) {
      if (statusEnum.getStatus().equals(status)) {
        return statusEnum;
      }
    }
    return null;
  }

  PurchaseRequestBillStatusEnum(String status, String statusDesc) {
    this.status = status;
    this.statusDesc = statusDesc;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public String getStatusDesc() {
    return statusDesc;
  }

  public void setStatusDesc(String statusDesc) {
    this.statusDesc = statusDesc;
  }
}
